<template> 
    <div>
      <h1>{{$store.state.num}}</h1>
      <button @click="xq">+10</button>
      <h2>getters:-------{{$store.getters.money}}</h2>
      <br>
     异步 <button @click="$store.dispatch('myXq')">3秒后加</button>
    </div>
</template>
<script>
export default {
    data() {
        return {}
    },
    methods: {
      xq(){
        this.$store.commit('xq',10)
      }
    },
    components:{},
    computed:{

    },
    watch:{},
    created() {},
}
</script>
<style lang="scss" scoped>
</style>